home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_actor_younglady.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  61 lines

  1. # Jones 3D Cog Script
  2. #
  3. # actor_YoungLady.cog
  4. #
  5. # [RT]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ===================================================================
  10.  
  11. symbols
  12.  
  13.     message        created
  14.     message        damaged
  15.  
  16. #    model        head0=head_yl_msound.3do    local
  17.     model        head1=head_yl_asound.3do    local
  18.     model        head2=head_yl_amsound.3do    local
  19.     model        head3=head_yl_osound.3do    local
  20.  
  21.     sound        hurtSnd=inxy001.wav            local    # "Don't do that...you need my help."
  22.  
  23.     thing        lady                        local
  24.  
  25.     int            bTalking=0                    local
  26.  
  27. end
  28.  
  29. # ===================================================================
  30.  
  31. code
  32.  
  33. created:
  34.  
  35.     lady = GetSenderRef();
  36.  
  37.     # Heads!
  38.     SetThingVoiceHeads(lady, "llhead", "", "head_yl_asound.3do", "head_yl_amsound.3do", "head_yl_osound.3do");
  39.  
  40.     return;
  41.  
  42. # -------------------------------------------------------------------
  43.  
  44. damaged:
  45.  
  46.     if (GetThingParent(GetSourceRef()) != GetLocalPlayerThing()) return;
  47.  
  48.     if (bTalking) return;
  49.  
  50.     bTalking = 1;
  51.  
  52.     lady = GetSenderRef();
  53.  
  54.     # Start the voice & wait...
  55.     PlayVoice(lady, hurtSnd, 1.0, 1);
  56.  
  57.     bTalking = 0;
  58.  
  59.     return;
  60.  
  61. end